package com.mydemo.design_pattern.action_type.strategy_pattern.demo1;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: OperatorContext, v1.0 2019-09-24 13:38 liming1 Exp $
 */
public class OperatorContext{
    private Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public int doOpera(int num1, int num2) {
        return strategy.doOperation(num1,num2);
    }
}
